package com.demo.springcloud.service;

import com.demo.springcloud.pojo.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author chenyuan
 * @date 2020/12/24 11:05
 */
// 配置需要调用的微服务
@FeignClient(value = "seata-storage-service")
public interface TStorageService {
	@GetMapping(value = "/storage/decrease")
	CommonResult decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}
